/**
 *	\file MyEntity.m
 *  
 *  \section desc_sec Description
 *  Description
 *  
 *  \if copyright
 *  	Copyright 2008 Ben Chen. All rights reserved.
 *  \endif
 *  
 *  \section hist_sec Change History:
 *  	-	3/4/08		BC		Created this file
 *  
 *  <hr>
 *  \addtogroup AKAnimationUtility
 *  @{
 */

#import "MyEntity.h"

@implementation MyEntity

- (id)initWithEntity:(NSEntityDescription *)entity insertIntoManagedObjectContext:(NSManagedObjectContext *)context {
	
	self = [super initWithEntity:entity insertIntoManagedObjectContext:context];
	
	if (self) {
		if (![self valueForKey:@"creationTime"])
			[self setValue:[NSDate date] forKey:@"creationTime"];
	}
	
	return self;
}

- (NSString*) description {
	return [[self valueForKey:@"creationTime"] description];
}

@end

/** @} */
